<?php
namespace  plugin\banmitongcheng\validate;
 

use app\common\validate\BaseValidate;
 

class ShoplistValidate extends BaseValidate
{
    protected $rule = [  
    ];

    protected $message = [
           
          'id.number' => 'id必须为数字',
          'id.require' => 'id不得为空',
          
          
          
          'sort.number' => 'sort必须为数字',
          'sort.require' => 'sort不得为空',
          
          
          
          
          'shop_tel.mobile' => '手机号格式错误',
          'uid.number' => 'uid必须为数字',
          
          
          
          
          
          
          'shop_name.max' => '商家名称不能超过88个字符字',
          'shop_name.require' => '商家名称不得为空',
          'nav_id.number' => '分类id必须为数字',
          'nav_id.require' => '分类id不得为空',
          
          'shop_tel.require' => '手机号不得为空',
          'shop_tag.max' => '标签不能超过88个字符字',
          'shop_tag.require' => '标签不得为空',
          'shop_addr.max' => '商家地址不能超过88个字符字',
          'shop_addr.require' => '商家地址不得为空',
          'business_time.max' => '营业时间不能超过88个字符字',
          'business_time.require' => '营业时间不得为空',
          'creation_time.max' => '入驻时间不能超过88个字符字',
          'creation_time.require' => '入驻时间不得为空',
          
          //数据验证提示
    ];


       
       /**
      * @notes  删除商家  
      * @date 2022-12-04 20:00:00
      * @author 半米科技低代码一键生成
      */
       public function   scenescsj(){ 
                   return $this->append('id','number')->append('id','require');
       }
       
       /**
      * @notes  置顶  
      * @date 2022-12-05 17:59:45
      * @author 半米科技低代码一键生成
      */
       public function   scenezd(){ 
                   return $this->append('id','number')->append('id','require')->append('sort','number')->append('sort','require');
       }
       
       /**
      * @notes  审核通过  
      * @date 2022-12-05 18:29:02
      * @author 半米科技低代码一键生成
      */
       public function   sceneshtg(){ 
                   return $this->append('id','number')->append('id','require');
       }
       
       /**
      * @notes  查询商家  
      * @date 2022-12-05 19:30:10
      * @author 半米科技低代码一键生成
      */
       public function   scenecxsj(){ 
                   return $this->append('shop_tel','mobile')->append('uid','number');
       }
       
       /**
      * @notes  查询商家详情  
      * @date 2023-03-24 13:53:07
      * @author 半米科技低代码一键生成
      */
       public function   scenecxsjxq(){ 
                   return $this->append('id','number')->append('id','require');
       }
       
       /**
      * @notes  编辑商家信息  
      * @date 2023-03-24 14:30:57
      * @author 半米科技低代码一键生成
      */
       public function   scenebjsjxx(){ 
                   return $this->append('id','number')->append('id','require')->append('shop_name','max:88')->append('shop_name','require')->append('nav_id','number')->append('nav_id','require')->append('shop_tel','mobile')->append('shop_tel','require')->append('shop_tag','max:88')->append('shop_tag','require')->append('shop_addr','max:88')->append('shop_addr','require')->append('business_time','max:88')->append('business_time','require')->append('creation_time','max:88')->append('creation_time','require');
       }
       //数据验证方法

}